/*******************************************************************************
  * Copyright(c) 2023 Levetop Semiconductor Co.,Led. All rights reserved.
  * @file     digitalClock.h
  * @author   UartTFT Application Team
  * @version  V0.0.1
  * @date     2023-01-04
  * @brief    This file contains the functions prototypes for the UartTFT
  *           Application display firmware.
 ********************************************************************************/

#ifndef DIGITALCLOCK_H_
#define DIGITALCLOCK_H_

#include "type.h"
#include "module_select.h"

/*RTC*/
typedef struct
{
	uint16_t x;
	uint16_t y;
	uint16_t ID_start; // The fixed icon is displayed when the variable is at this value.
	uint8_t mode;
	uint16_t Len_last;
	uint16_t overlay;
} RTC_Info;
extern RTC_Info gRTC_Info[];
extern uint8_t RTC_num;
extern uint8_t RTC_flag;

void show_RTC(void);
void RTC_display(uint8_t type, uint8_t *buff);
uint8_t Display_RTC(RTC_Info *gRTC, uint8_t status);
uint8_t Display_RTC_to_buff(uint8_t type, uint8_t *buff2,uint16_t overlay_x ,uint16_t overlay_y,uint16_t overlay_w);

#endif /* DIGITALCLOCK_H_ */
